export const searchForm = {
  name: "orderList",
  searchItems: [
    {
      type: "filterSelect",
      label: "渠道",
      prop: "channelCodeList",
      placeholder: "请选择渠道",
      multiple: true,
      collapseTags: true,
      options: []
    },
    {
      type: "filterSelect",
      label: "产品",
      prop: "productCodeList",
      placeholder: "请选择产品",
      options: [],
      multiple: true,
      collapseTags: true
    },
    {
      type: "filterSelect",
      label: "供应商",
      prop: "supplierCodeList",
        placeholder: "请选择供应商",
        multiple: true,
        collapseTags: true,
      options: []
    },
    {
      type: "input",
      label: "订单号",
      prop: "orderNo",
      placeholder: "请输入订单号"
    },
    {
      type: "input",
      label: "手机号",
      prop: "mobile",
      placeholder: "请输入手机号"
    },
    {
      type: "select",
      label: "状态",
      prop: "orderStatus",
      placeholder: "请选择状态",
      /*   "1": "初始化成功",
    "2": "初始化失败",
    "3": "签约成功",
    "4": "签约失败",
    "5": "支付(扣款)成功",
    "6": "支付(扣款)失败",
    "7": "解约成功",
    "8": "解约失败",
    "9": "退款成功",
    "10": "退款失败",
    "11": "解约中",
    "12": "退款中",
    "-1": "其他", */
      options: [
        { key: 1, value: "初始化", id: 1 },
        { key: 2, value: "初始化成功", id: 2 },
        { key: 3, value: "初始化失败", id: 3 },
        { key: 4, value: "订购中", id: 4 },
        { key: 5, value: "订购成功", id: 5 },
        { key: 6, value: "订购失败", id: 6 },
        { key: 7, value: "其他", id: 7 }
      ]
    },
    {
      type: "data-picker",
      label: "操作时间",
      prop: "handTime",
      placeholder: "请选择时间"
    },
    {
      type: "data-picker",
      label: "成功时间",
      prop: "orderSuccessTimeStart",
      placeholder: "请选择时间"
    },
    {
      type: "select",
      label: "运营商",
      prop: "isp",
      placeholder: "请选择运营商",
      option: []
    },
    {
      type: "select",
      label: "是否退订",
      prop: "isUnsubscribe",
      placeholder: "请选择",
      options: [
        { key: 1, value: "是" },
        { key: 2, value: "否" }
      ]
    }
  ],
  tableBtnItems: [],
  formBtnItems: [
    {
      name: "查询",
      color: "#1f63ff",
      icon: "Search",
      type: "search",
      btnType: "primary",
      code: ""
    },

    {
      name: "重置",
      color: "",
      icon: "RefreshRight",
      type: "reSet",
      code: ""
    },
    {
      name: "下载",
      color: "",
      icon: "Download",
      type: "upload",
      code: "INVENTORY_PACKAGE_ORDER:EXPORT"
    },
    {
      name: "下载列表",
      color: "",
      icon: "Link",
      type: "uploadList",
      code: "INVENTORY_PACKAGE_ORDER:EXPORT"
    },
    {
      name: "",
      color: "#1f63ff",
      icon: "View",
      type: "slot",
      slot: "slotOrder",
      btnType: "",
      code: ""
    }
  ],
  btnSize: "small",

  labelwidth: "80px",
  size: "mini",
  isProchildren: 2
}

export const tableProps = {
  name: "orderList",
  propsList: [
    {
      type: "normal",
      prop: "productCode",
      label: "产品编码",
      width: "120px"
    },
    {
      type: "normal",
      prop: "productName",
      label: "产品名称",
      width: "200px"
    },
    {
      type: "normal",
      prop: "channelCode",
      label: "渠道编码",
      width: "270px"
    },
    {
      type: "normal",
      prop: "channelName",
      label: "渠道名称",
      width: "200px"
      },
      {
        type: "normal",
        label: "供应商编码",
        prop: "supplierCode",
            width: "200px"
      },
    {
      type: "normal",
      label: "供应商名称",
      prop: "supplierName",
          width: "200px"
    },
    {
      type: "normal",
      prop: "orderTime",
      label: "操作时间",
      width: "160px"
    },
    {
      type: "normal",
      prop: "orderNo",
      label: "订单号",
      width: "220px"
    },
    {
      type: "normal",
      prop: "mobile",
      label: "手机号",
      width: "120px"
    },
    {
      type: "normal",
      prop: "outOrderStatusDetail",
      label: "详情描述",
      width: "220px"
    },
    {
      type: "status",
      prop: "orderStatus",
      label: "状态",
      width: "120px"
    },
    {
      type: "normal",
      prop: "outOrderNo",
      label: "接口订单",
      width: "220px"
    },
    {
      type: "normal",
      prop: "orderSuccessTime",
      label: "成功时间",
      width: "220px"
    },
    {
      type: "dispose",
      prop: "isp",
      label: "运营商",
      width: "120px"
    },
    {
      type: "normal",
      prop: "attributionLocation",
      label: "号码归属地",
      width: "120px"
    },
    {
      type: "normal",
      prop: "positioningRegion",
      label: "定位地区",
      width: "120px"
    },
    {
      type: "status",
      prop: "isUnsubscribe",
      label: "是否退订",
      width: "auto"
    },
    {
      type: "normal",
      prop: "unsubscribeTime",
      label: "退订时间",
      width: "120px"
    },
    {
      type: "handle",
      label: "操作",
      width: "140px",
      btnType: " link",
      list: [{ name: "查看", code: "INVENTORY_PACKAGE_ORDER:DETAIL" }]
    }
  ],
  tableSize: "default"
}

export const dialogProps = {
  name: "orderList",
  propsList: [
    {
      type: "slot",
      text: "用户基础信息"
    },
    {
      type: "input",
      label: "手机号",
      prop: "mobile"
    },
    {
      type: "select",
      label: "运营商",
      prop: "isp",
      placeholder: "",
      options: [
        { key: "ChinaMobile", value: "中国移动", id: 1 },
        { key: "ChinaUnicom", value: "中国联通", id: 2 },
        { key: "ChinaTelecom", value: "中国电信", id: 3 },
        { key: "ChinaBroadnet", value: "中国广电", id: 4 },
        { key: "Other", value: "其他", id: 5 }
      ]
    },
    {
      type: "input",
      label: "号码归属地",
      prop: "attributionLocation"
    },

    {
      type: "input",
      label: "定位地区",
      prop: "positioningRegion"
    },
    {
      type: "slot",
      text: "渠道信息"
    },
    {
      type: "input",
      label: "产品名称",
      prop: "productName"
    },
    {
      type: "input",
      label: "产品编码",
      prop: "productCode"
    },

    {
      type: "input",
      label: "渠道编码",
      prop: "channelCode"
    },
    {
      type: "input",
      label: "渠道名称",
      prop: "channelName"
    },
    {
      type: "input",
      label: "供应商编码",
      prop: "supplierCode"
    },
    {
      type: "input",
      label: "供应商名称",
      prop: "productName"
    },
    {
      type: "input",
      label: "操作时间",
      prop: "orderTime"
    },
    {
      type: "input",
      label: "订单号",
      prop: "orderNo"
    },
    {
      type: "input",
      label: "详情描述",
      prop: "outOrderStatusDetail"
    },
    {
      type: "select",
      label: "状态",
      prop: "orderStatus",
      options: [
        { key: 1, value: "初始化", id: 1 },
        { key: 2, value: "初始化成功", id: 2 },
        { key: 3, value: "初始化失败", id: 3 },
        { key: 4, value: "订购中", id: 4 },
        { key: 5, value: "订购成功", id: 5 },
        { key: 6, value: "订购失败", id: 6 },
        { key: 7, value: "其他", id: 7 }
      ]
    },
    {
      type: "input",
      label: "接口订单",
      prop: "outOrderNo"
    },
    {
      type: "input",
      label: "成功时间",
      prop: "orderSuccessTime"
    },
    {
      type: "select",
      label: "是否退订",
      prop: "isUnsubscribe",
      options: [
        { key: 1, value: "是" },
        { key: 2, value: "否" }
      ]
    },
    {
      type: "input",
      label: "退订时间",
      prop: "unsubscribeTime"
    }
  ],
  title: "详情",
  labelwidth: "80px",
  size: ""
}
